package com.melody.mapper;

import com.melody.entry.MusicInfo;
import com.melody.entry.UserFavorite;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author zxz
* @description 针对表【user_favorite(我的喜欢)】的数据库操作Mapper
* @createDate 2025-05-09 10:31:18
* @Entity com.melody.entry.UserFavorite
*/
public interface UserFavoriteMapper extends BaseMapper<UserFavorite> {

    //根据musicId和UserId查询
    UserFavorite selectByUserIdAndMusicId(@Param("musicId") Integer musicId,@Param("userId") Integer userId);

    //更新
    Integer updateByUserIdAndMusicId(@Param("musicId") Integer musicId,@Param("userId") Integer userId);
}




